package base;

/**
 * @Auther DRevelation
 * @Date 2020-05-13 上午 10:19
 * @Desc
 */
public class FinalDemo {
    private static int count = 0;
    private final int id = count++;

    @Override
    public String toString() {
        return String.format("%1$-3d ", id);
    }

    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            FinalDemo demo = new FinalDemo();
            System.out.println(demo);
        }
    }
}
